package com.hannesdorfmann.mosby3.mvi.integrationtest.lifecycle.componetcotainer;

import com.hannesdorfmann.mosby3.mvi.integrationtest.ResourceTable;
import com.hannesdorfmann.mosby3.mvi.integrationtest.slice.ComponentContainerFinishOnStartAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class ComponentContainerFinishOnStartAbility extends Ability {

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
//        super.setMainRoute(ComponentContainerFinishOnStartAbilitySlice.class.getName());
        setUIContent(ResourceTable.Layout_ability_component_container_finish_on_start_container);
        terminateAbility();
    }

    public ComponentContainerFinishOnStartLayout getLayout() {
        return (ComponentContainerFinishOnStartLayout) findComponentById(ResourceTable.Id_mviLayout);
    }
}
